﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000455 RID: 1109
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnteredSceneInfo : IMessage<EnteredSceneInfo>, IMessage, IEquatable<EnteredSceneInfo>, IDeepCloneable<EnteredSceneInfo>, IBufferMessage
	{
		// Token: 0x17000E3C RID: 3644
		// (get) Token: 0x060031D1 RID: 12753 RVA: 0x00088BC0 File Offset: 0x00086DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnteredSceneInfo> Parser
		{
			get
			{
				return EnteredSceneInfo._parser;
			}
		}

		// Token: 0x17000E3D RID: 3645
		// (get) Token: 0x060031D2 RID: 12754 RVA: 0x00088BC7 File Offset: 0x00086DC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnteredSceneInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E3E RID: 3646
		// (get) Token: 0x060031D3 RID: 12755 RVA: 0x00088BD9 File Offset: 0x00086DD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnteredSceneInfo.Descriptor;
			}
		}

		// Token: 0x060031D4 RID: 12756 RVA: 0x00088BE0 File Offset: 0x00086DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnteredSceneInfo()
		{
		}

		// Token: 0x060031D5 RID: 12757 RVA: 0x00088BE8 File Offset: 0x00086DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnteredSceneInfo(EnteredSceneInfo other) : this()
		{
			this.floorId_ = other.floorId_;
			this.planeId_ = other.planeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060031D6 RID: 12758 RVA: 0x00088C19 File Offset: 0x00086E19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnteredSceneInfo Clone()
		{
			return new EnteredSceneInfo(this);
		}

		// Token: 0x17000E3F RID: 3647
		// (get) Token: 0x060031D7 RID: 12759 RVA: 0x00088C21 File Offset: 0x00086E21
		// (set) Token: 0x060031D8 RID: 12760 RVA: 0x00088C29 File Offset: 0x00086E29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FloorId
		{
			get
			{
				return this.floorId_;
			}
			set
			{
				this.floorId_ = value;
			}
		}

		// Token: 0x17000E40 RID: 3648
		// (get) Token: 0x060031D9 RID: 12761 RVA: 0x00088C32 File Offset: 0x00086E32
		// (set) Token: 0x060031DA RID: 12762 RVA: 0x00088C3A File Offset: 0x00086E3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlaneId
		{
			get
			{
				return this.planeId_;
			}
			set
			{
				this.planeId_ = value;
			}
		}

		// Token: 0x060031DB RID: 12763 RVA: 0x00088C43 File Offset: 0x00086E43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnteredSceneInfo);
		}

		// Token: 0x060031DC RID: 12764 RVA: 0x00088C51 File Offset: 0x00086E51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnteredSceneInfo other)
		{
			return other != null && (other == this || (this.FloorId == other.FloorId && this.PlaneId == other.PlaneId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060031DD RID: 12765 RVA: 0x00088C90 File Offset: 0x00086E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FloorId != 0U)
			{
				num ^= this.FloorId.GetHashCode();
			}
			if (this.PlaneId != 0U)
			{
				num ^= this.PlaneId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060031DE RID: 12766 RVA: 0x00088CE8 File Offset: 0x00086EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060031DF RID: 12767 RVA: 0x00088CF0 File Offset: 0x00086EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060031E0 RID: 12768 RVA: 0x00088CFC File Offset: 0x00086EFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FloorId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.FloorId);
			}
			if (this.PlaneId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.PlaneId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060031E1 RID: 12769 RVA: 0x00088D58 File Offset: 0x00086F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FloorId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FloorId);
			}
			if (this.PlaneId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlaneId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060031E2 RID: 12770 RVA: 0x00088DB0 File Offset: 0x00086FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnteredSceneInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FloorId != 0U)
			{
				this.FloorId = other.FloorId;
			}
			if (other.PlaneId != 0U)
			{
				this.PlaneId = other.PlaneId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060031E3 RID: 12771 RVA: 0x00088E00 File Offset: 0x00087000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060031E4 RID: 12772 RVA: 0x00088E0C File Offset: 0x0008700C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.PlaneId = input.ReadUInt32();
					}
				}
				else
				{
					this.FloorId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001385 RID: 4997
		private static readonly MessageParser<EnteredSceneInfo> _parser = new MessageParser<EnteredSceneInfo>(() => new EnteredSceneInfo());

		// Token: 0x04001386 RID: 4998
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001387 RID: 4999
		public const int FloorIdFieldNumber = 7;

		// Token: 0x04001388 RID: 5000
		private uint floorId_;

		// Token: 0x04001389 RID: 5001
		public const int PlaneIdFieldNumber = 10;

		// Token: 0x0400138A RID: 5002
		private uint planeId_;
	}
}
